package com.jsmtr.rms.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Clob;
import java.util.Date;

/**
 * 专业资格证书
 * @author: cyx
 * @description:
 * @date: Created in 2020-3-8 23:10
 * @modified by:
 */
@Entity
@Table(name = "DUSERMAJOR")
public class DUserMajor {
    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = true, length = 50)
    private String posttypecode; // 专业技术职务(类别)

    @Column(nullable = true, length = 50)
    private String posttypename; // 专业技术职务(类别)

    @Column(nullable = true, length = 100)
    private String postspecialty; // 专业技术职务(专业)

    @Column(nullable = true, length = 50)
    private String postlevelcode; // 专业技术职务(名称)

    @Column(nullable = true, length = 50)
    private String postlevelname; // 专业技术职务(名称)

    @Column(nullable = true)
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date postgettime; // 专业技术职务(取得时间)

    @Column(nullable = true, length = 100)
    private String postcompany; // 专业技术职务(发证机构)

    @Column(nullable = true, length = 100)
    private String rid; //简历id

    @Column(nullable = true, length = 250)
    private String filename; // 附件名称

    @Column(nullable = true, length = 250)
    private String filepath; // 附件路径

    @Column(nullable = true)
    private Clob filecontent; //附件内容

    @Column(nullable = true, length = 50)
    private String cardno;//身份证号

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPosttypecode() {
        return this.posttypecode;
    }

    public void setPosttypecode(String posttypecode) {
        this.posttypecode = posttypecode;
    }

    public String getPosttypename() {
        return this.posttypename;
    }

    public void setPosttypename(String posttypename) {
        this.posttypename = posttypename;
    }

    public String getPostspecialty() {
        return this.postspecialty;
    }

    public void setPostspecialty(String postspecialty) {
        this.postspecialty = postspecialty;
    }

    public String getPostlevelcode() {
        return this.postlevelcode;
    }

    public void setPostlevelcode(String postlevelcode) {
        this.postlevelcode = postlevelcode;
    }

    public String getPostlevelname() {
        return this.postlevelname;
    }

    public void setPostlevelname(String postlevelname) {
        this.postlevelname = postlevelname;
    }

    public Date getPostgettime() {
        return this.postgettime;
    }

    public void setPostgettime(Date postgettime) {
        this.postgettime = postgettime;
    }

    public String getPostcompany() {
        return this.postcompany;
    }

    public void setPostcompany(String postcompany) {
        this.postcompany = postcompany;
    }

    public String getRid() {
        return this.rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getFilename() {
        return this.filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilepath() {
        return this.filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public Clob getFilecontent() {
        return this.filecontent;
    }

    public void setFilecontent(Clob filecontent) {
        this.filecontent = filecontent;
    }

    public String getCardno() {
        return this.cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }
}
